﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace AMS.UI.Controls
{
    public partial class SummaryBar : UserControl
    {
        public SummaryBar()
        {
            InitializeComponent();
            Dock = DockStyle.Bottom;
        }

        BusinessListView lv;

        public BusinessListView ListView
        {
            get { return lv; }
            set { lv = value; }
        }

        private void chkAll_CheckedChanged(object sender, EventArgs e)
        {
            if (lv != null && lv.CheckBoxes)
            {
                if (chkAll.Checked)
                {
                    lv.CheckAll();
                }
                else
                {
                    lv.UncheckAll();
                }
            }
        }

        private void lkCheckExcuded_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            if (lv != null)
            {
                lv.CheckExcluded();
            }
        }

        private void lkNextPage_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {

        }

        private void lkLastPage_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {

        }


    }
}
